# -*- coding: utf-8 -*- 
#
# Description:
#
#  Definiton
#
#
#
# Changes:
#
# 2012-01-10
# Initial Commit
#
#
# Copyright 2010-2012, WyDev Team.
# Author: Polo35 (polo35580@hotmail.fr)
#
# Licenced under Academic Free License version 3.0
# Review WyGui README & LICENSE files for further details.

nname: 53
n 53(None)[self.eventhandler = PlaylistEditorEventHandler(self)
Menu.__init__(self, name=name, choices=playlist, type=type, **kw)
]:
	i: 12(), 38(), 51(AE)
	o: 

nname: 51
n 51(None)[]:
	i: 28(f)
	o: 53(AE)

nname: 38
n 38(None)[playlist = []
]:
	i: 28(t)
	o: 53()

nname: 28
n 28(<dummy_ex3> EXC_MATCH BrowseError)[]:
	i: 0(except)
	o: 38(t), 51(f)

nname: 12
n 12(None)[playlist = playlist.browse()
]:
	i: 0(try)
	o: 53()

nname: 0
n 0(None)[self.playlist = playlist
]:
	i: 
	o: 12(try), 28(except)

nname: 28
n 28(None)[except BrowseError:
	playlist = []
self.eventhandler = PlaylistEditorEventHandler(self)
Menu.__init__(self, name=name, choices=playlist, type=type, **kw)
]:
	i: 0()
	o: 

nname: 0
n 0(None)[self.playlist = playlist
try:
	playlist = playlist.browse()
]:
	i: 
	o: 28()

nname: 0
n 0(None)[self.playlist = playlist
try:
	playlist = playlist.browse()
except BrowseError:
	playlist = []
self.eventhandler = PlaylistEditorEventHandler(self)
Menu.__init__(self, name=name, choices=playlist, type=type, **kw)
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb76e3fec>}
nname: 58
n 58(None)[]:
	i: 3(), 39(), 56(AE)
	o: 

nname: 56
n 56(None)[]:
	i: 29(f)
	o: 58(AE)

nname: 39
n 39(None)[self.hide()
]:
	i: 29(t)
	o: 58()

nname: 29
n 29(<dummy_ex3> EXC_MATCH BrowseError)[]:
	i: 0(except)
	o: 39(t), 56(f)

nname: 3
n 3(None)[Menu.select(self, item, list_name, force_pos)
]:
	i: 0(try)
	o: 58()

nname: 0
n 0(None)[]:
	i: 
	o: 3(try), 29(except)

nname: 29
n 29(None)[except BrowseError:
	self.hide()
]:
	i: 0()
	o: 

nname: 0
n 0(None)[try:
	Menu.select(self, item, list_name, force_pos)
]:
	i: 
	o: 29()

nname: 0
n 0(None)[try:
	Menu.select(self, item, list_name, force_pos)
except BrowseError:
	self.hide()
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb76e3c4c>}
nname: 6
n 6(None)[groupeable = True
def __init__(self, name=_('Playlist editor'), playlist=None, type='playlist_editor', **kw):
	self.playlist = playlist
	try:
		playlist = playlist.browse()
	except BrowseError:
		playlist = []
	self.eventhandler = PlaylistEditorEventHandler(self)
	Menu.__init__(self, name=name, choices=playlist, type=type, **kw)

def select(self, item, list_name=None, force_pos=False):
	try:
		Menu.select(self, item, list_name, force_pos)
	except BrowseError:
		self.hide()

]:
	i: 
	o: 

self.nodes: {6: <unpyclib.structure.node instance at 0xb76e342c>}
nname: 0
n 0(None)[PlaylistEditor.__init__(self, name, playlist, type, **kw)
self.eventhandler = FavoriteEditorEventHandler(self)
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb76e38ec>}
nname: 6
n 6(None)[__doc__ = 'Cosmetic variation on the playlist editor, used to edit TV favorites.'
def __init__(self, name=_('Favorite editor'), playlist=None, type='tv_favorite_editor', **kw):
	PlaylistEditor.__init__(self, name, playlist, type, **kw)
	self.eventhandler = FavoriteEditorEventHandler(self)

]:
	i: 
	o: 

self.nodes: {6: <unpyclib.structure.node instance at 0xb76e31cc>}
nname: 0
n 0(None)[from __future__ import absolute_import
__all__ = ['PlaylistEditor']
from .core import Menu
from pygui.eventmanager.menus import PlaylistEditorEventHandler, FavoriteEditorEventHandler
from wymedia.wmplus import BrowseError
class PlaylistEditor(Menu):
	groupeable = True
	def __init__(self, name=_('Playlist editor'), playlist=None, type='playlist_editor', **kw):
		self.playlist = playlist
		try:
			playlist = playlist.browse()
		except BrowseError:
			playlist = []
		self.eventhandler = PlaylistEditorEventHandler(self)
		Menu.__init__(self, name=name, choices=playlist, type=type, **kw)

	def select(self, item, list_name=None, force_pos=False):
		try:
			Menu.select(self, item, list_name, force_pos)
		except BrowseError:
			self.hide()



class FavoriteEditor(PlaylistEditor):
	__doc__ = 'Cosmetic variation on the playlist editor, used to edit TV favorites.'
	def __init__(self, name=_('Favorite editor'), playlist=None, type='tv_favorite_editor', **kw):
		PlaylistEditor.__init__(self, name, playlist, type, **kw)
		self.eventhandler = FavoriteEditorEventHandler(self)



]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb76dcbcc>}
from __future__ import absolute_import
__all__ = ['PlaylistEditor']
from .core import Menu
from pygui.eventmanager.menus import PlaylistEditorEventHandler, FavoriteEditorEventHandler
from wymedia.wmplus import BrowseError
class PlaylistEditor(Menu):
	groupeable = True
	def __init__(self, name=_('Playlist editor'), playlist=None, type='playlist_editor', **kw):
		self.playlist = playlist
		try:
			playlist = playlist.browse()
		except BrowseError:
			playlist = []
		self.eventhandler = PlaylistEditorEventHandler(self)
		Menu.__init__(self, name=name, choices=playlist, type=type, **kw)

	def select(self, item, list_name=None, force_pos=False):
		try:
			Menu.select(self, item, list_name, force_pos)
		except BrowseError:
			self.hide()



class FavoriteEditor(PlaylistEditor):
	__doc__ = 'Cosmetic variation on the playlist editor, used to edit TV favorites.'
	def __init__(self, name=_('Favorite editor'), playlist=None, type='tv_favorite_editor', **kw):
		PlaylistEditor.__init__(self, name, playlist, type, **kw)
		self.eventhandler = FavoriteEditorEventHandler(self)



